﻿using System.Collections.Generic;
using System.Linq;

namespace JXPlatform.Infrastructure.Interfaces.Authentication
{
    public interface IAuthenticationService
    {
        IQueryable<IRole> GetUserRoles(IUser user);
        IQueryable<IPermission> GetRolePermissions(IRole role); 

        void AddRoleUsers(IRole role, IEnumerable<IUser> users);
        void RemoveRoleUsers(IRole role, IEnumerable<IUser> users);

        void AddRolePermissions(IRole role, IEnumerable<IPermission> permissions);
        void RemoveRolePermissions(IRole role, IEnumerable<IPermission> permissions);
    }
}
